﻿using Volo.Abp.Reflection;

namespace Joy.Erp.Ufida.Permissions
{
    public partial class UfidaPermissions
    {
        public const string GroupName = "BasicArchives";
        public const string Menus = "Menus";

        public partial class AdministrationMenu
        {
            public const string Default = Menus + ".Administration";
            public const string Sync = Default + ".Sync";
            public const string ArchivesSync = Sync + ".ArchivesSync";
            public const string DocumentSync = Sync + ".DocumentSync";
        }

        public partial class BasicArchivesMenu
        {
            public const string Default = Menus + ".BasicArchives.ArchivesManagement";
            public const string SalesManagement = Menus + ".BasicArchives.SalesManagement";
            public const string PurchasingManagement = Menus + ".BasicArchives.PurchasingManagement";
            public const string ProductionManagement = Menus + ".BasicArchives.ProductionManagement";
        }

        public static string[] GetAll()
        {
            return ReflectionHelper.GetPublicConstantsRecursively(typeof(UfidaPermissions));
        }
    }
}
